
<%@ page import="javax.servlet.http.Cookie" %><%--
  Created by IntelliJ IDEA.
  User: gaoqiming
  Date: 2025/8/21
  Time: 下午5:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html >
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<h1>请登录！</h1>
<form action="LoginService" method="post">
    用户名: <input type="text" name="userName">
    <br>
    <br>
    密码: <input type="password" name="passWord"><br>
    验证码: <input type="text" name="code">   <input type="image" src="Verification_code" alt="验证码"><br>
    <input type="checkbox" name="remember" value="1">记住密码<br>
    <%
        String msg = (String) request.getAttribute("msg");
    %>
    <c:if test="<%=msg != null%>">
    <span style="color: red"><%=msg%></span>
    </c:if>
    <input type="submit" value="登录">
</form>

</body>
</html>